What is the difference between the Grails console, shell and interactive modes?Grails Interview Questions for Experienced/Grails Interview Questions and Answers for Freshers & Experienced

What is the difference between the Grails console, shell and interactive modes?

•Grails interactive is interactive mode of the grails command line interface. It lets you run Gant scripts in the script runner one after another.

•Grails console is a Swing-based command console similar to the Groovy console. It let’s you execute code against a full environment that has access to all your domain classes and quickly test out code that would go into controllers and services.

•Grails shell is the headless version of Grails console. This is useful when you want to access and test out code in a remote SSH-based server. One of the advantages of the Grails shell is that it does not reload when domain classes change like the console does, so it is useful also for long-running scripts, although the new run – script command in Grails 1.3.6 might be better suited for those.

Posted Date:- 2021-12-01 08:39:29

What exactly do you know about Listeners and closure in Groovy?

What are the features Groovy JDK is equipped with?

What are constraints in Grails? Give me three examples.

Explain Gorm events. Provide two examples.

What is the difference between a dynamic finder, a HQL query and a criteria?

What are the basic requirements for Groovy?

Is it possible for you to integrate the Groovy with other applications that are not based on Java?

Do you think Groovy is a simple language than others, if so, mention one reason to support your statement

What are named queries? Where do you define them?

What does the removeFrom() function do in a domain object?

What is the difference between calling a read() and a get() in GORM?

Explain what lock() is in GORM and why you would use it.

Explain what joinTable does within GORM.

Explain the different options available to dbCreate.

What is the _Events.groovy file? What can it be used for?

How do I create a custom script in Grails?

What is the difference between run-app and run-war?

What happens when you call grails bug-report?

What are some things I need to be careful about when working with the Grails console?

What is the difference between validate() and save()?

What are Grails command objects? How can they be used in validation?

Give me two examples of constraints that affect database generation.

Give me two examples of constraints that affect the display within scaffolding views.

What are constraints in Grails? Give me three examples.

How do I inspect the built-in HSQLDB database included with Grails?

How do I get a hold of my Spring beans in the Grails console?

I have a hibernate HBM file I want to include in my Grails application. Where do I edit this?

I have a property in my domain class that I don’t want to be persisted, how do I make sure it doesn’t generate a field in my database?

Explain Gorm events. Provide two examples.

How can you run sql directly in Grails?

What is the difference between the Grails console, shell and interactive modes?

Explain the difference between the Config.groovy and BuildConfig.groovy files.

Explain the concept of externalized configuration. What is this good for?

How do I edit the web.xml file of my grails application?

I have a parameter in my Config.groovy file named layer1.prop1. How can I access this in a controller? How can I access this in a service?

What do you understand by metaprogramming?

List down some of the advantages of Groovy.

What is the difference between a dynamic finder, a HQL query and a criteria?

What are named queries? Where do you define them?

What does the removeFrom() function do in a domain object?

What is the difference between calling a read() and a get() in GORM?

Please explain what lock() is in GORM and why you would use it.

Please explain what joinTable does within GORM.

Closet has many shoes. I want to keep the order of shoes I insert into the closet domain object. How do I do this?

What are dynamic finders?

My Grails application is in a compile loop and I suspect one of my class names doesn’t match the file name. How do I debug this?

What is the _Events.groovy file? What can it be used for?

How do I create a custom script in Grails?

What is the difference between run-app and run-war?

How do I change the server port of my Grails application?

Search
R4R Team
R4R provides Grails Freshers questions and answers (Grails Interview Questions and Answers) .The questions on R4R.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,Grails Interview Questions for Experienced,Grails Freshers & Experienced Interview Questions and Answers,Grails Objetive choice questions and answers,Grails Multiple choice questions and answers,Grails objective, Grails questions , Grails answers,Grails MCQs questions and answers Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher R4r provides Python,General knowledge(GK),Computer,PHP,SQL,Java,JSP,Android,CSS,Hibernate,Servlets,Spring etc Interview tips for Freshers and Experienced for Grails fresher interview questions ,Grails Experienced interview questions,Grails fresher interview questions and answers ,Grails Experienced interview questions and answers,tricky Grails queries for interview pdf,complex Grails for practice with answers,Grails for practice with answers You can search job and get offer latters by studing r4r.in .learn in easy ways .